import request from '@/utils/request';

export function selectAll() {
    return request({
        url: `/MaintenanceRecord/xiancha/selectAll`,
        method: 'get'
    });
}

export function addXiancha(data) {
    return request({
        url: `/MaintenanceRecord/xiancha/add`,
        method: 'post',
        data: data
    });
}

export function updateXiancha(xcid, data) {
    return request({
        url: `/MaintenanceRecord/xiancha/update/${xcid}`,
        method: 'put',
        data: data
    });
}

export function deleteXiancha(xcid) {
    return request({
        url: `/MaintenanceRecord/xiancha/delete/${xcid}`,
        method: 'delete'
    });
}

export function downloadXiancha() {
    return request({
        url: `/MaintenanceRecord/xiancha/download`,
        method: 'GET',
        responseType: 'blob'
    });
}